import request from '@/utils/request'
import Cookies from 'js-cookie'
export default {
  roleForForceAuthorize (query) {
    return request({
      url: 'sot-admin-api/sys/role/originRoleList',
      method: 'get',
      params: query
    })
  },
  resourceForAuthorize (query) {
    return request({
      url: 'sot-admin-api/sys/role/resourceForSelect',
      method: 'get',
      params: query
    })
  },
  forceAuthorize (data) {
    return request({
      url: 'sot-admin-api/sys/role/authorize',
      method: 'post',
      data: data
    })
  },
  initPermissionCache (data) {
    return request({
      url: 'sot-admin-api/sys/init',
      method: 'post',
      data: data
    })
  }
}
